package com.kugou.miniapp.dao;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

import java.util.Map;

@Mapper
public interface MailUserMapper {

    @Insert("insert into mail_user (user_id, mail_id) values(#{user_id}, #{mail_id}) ")
    public int insert(Map<String, Object> map);

    @Delete("delete from mail_user where mail_id = #{param1} and user_id = #{param2}")
    public int deleteMailUserByMailIdAndUserId(String mail_id, String user_id);

}
